package com.cjm.one.custom.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.cjm.one.custom.service.CustomSignInService;
import com.cjm.one.custom.mapper.CustomSignInMapper;
import com.cjm.one.model.custom.entity.CustomSignIn;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author 29289
* @description 针对表【custom_sign_in】的数据库操作Service实现
* @createDate 2024-11-07 10:26:17
*/
@Service
public class CustomSignInServiceImpl extends ServiceImpl<CustomSignInMapper, CustomSignIn>
    implements CustomSignInService {
    @Resource
    private CustomSignInMapper customSignInMapper;

    @Override
    public Page<CustomSignIn> getList(Integer current, Integer size, Long userId) {
        Page<CustomSignIn> page = new Page<>(current, size);
        LambdaQueryWrapper<CustomSignIn> customSignInLambdaQueryWrapper = new LambdaQueryWrapper<>();

        customSignInLambdaQueryWrapper.eq(CustomSignIn::getCustomId, userId);
       return customSignInMapper.selectPage(page, customSignInLambdaQueryWrapper);

    }

    @Override
    public Boolean signIn(Long userId) {

        return null;
    }
}




